package com.ys.feign;

import com.ys.common.R;
import com.ys.pojo.TradeCoupon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("shop-coupon")
public interface CouponApi {
    @RequestMapping("/coupon/findCouponById/{couponId}")
    R findCouponById(@PathVariable("couponId") Long couponId);


    @RequestMapping("/coupon/changeCoponStatus")
    R changeCoponStatus(@RequestBody TradeCoupon coupon);
}
